package view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class Test extends JFrame {

	private JPanel contentPane;
	private JLabel lblTest;
	private JTextField textField;
	private JButton btnNewButton;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Test frame = new Test();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Test() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		this.contentPane = new JPanel();
		this.contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(this.contentPane);
		this.contentPane.setLayout(null);
		
		this.lblTest = new JLabel("Test");
		this.lblTest.setBounds(59, 56, 46, 14);
		this.contentPane.add(this.lblTest);
		
		this.textField = new JTextField();
		this.textField.setBounds(131, 53, 86, 20);
		this.contentPane.add(this.textField);
		this.textField.setColumns(10);
		
		this.btnNewButton = new JButton("New button");
		this.btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				do_btnNewButton_actionPerformed(arg0);
			}
		});
		this.btnNewButton.setBounds(128, 84, 89, 23);
		this.contentPane.add(this.btnNewButton);
	}

	protected void do_btnNewButton_actionPerformed(ActionEvent arg0) {
		textField.setText("Hallo Welt");
		
	
	}
}
